<?php
/**
 * 应用程序配置文件
 *
 * @access public
 * @author virowin<virowin@gmail.com>
 * @version 1.0 Thu Apr 26 09:57:08 CST 2012
 * @package app
 */

//应用程序名称
$CFG ['app_name'] = "football";
$CFG ['base_url'] = "http://dev.football.com";
$CFG ['static_url'] = $CFG['base_url'].'/static' ;
$CFG ['app_path'] = $CFG['app_base_path'].DIRECTORY_SEPARATOR.$CFG['app_name']; 
$CFG ['tpl_path'] = $CFG['tpl_base_path'].DIRECTORY_SEPARATOR.'/templates/';
$CFG ['tplc_path'] = $CFG['tpl_base_path'].DIRECTORY_SEPARATOR.'/templates_c/';

$PROJECT_ERROR_DESC = array(
	101=>'no list here',	//Biz/Comment.php
);

$CFG ['display_errors'] = 1;	//对api接口不报php错
$CFG['use_cache'] = false;       //缓存,线上需要打开

#调用接口请使用Conf类 => Conf::$api_login;
//开发环境接口配置
class Conf_DEV{
	/* mobile库 */
	static public $db = array(
		'dsn' => 'mysql:dbname=football;host=127.0.0.1;port=3306;',
		'username' => 'root',
		'password' => 'virowin',
		'driver_option' => array( PDO::ATTR_PERSISTENT => true)
	);
}

class Conf extends Conf_DEV {} ;
//$mem_cache_host = array('192.168.131.9','8086');

$CFG['upload_sig'] = '8Abd587B' ;
$CFG['update_sig'] = '8a01d60C';
class CFG {
    static function value($key){
        global $CFG;
        return $CFG[$key];
    }
}
